//
//  ViewController.m
//  UI_homework_04_QQ音乐界面
//
//  Created by li cheng on 16/7/19.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    // 背景图
    UIImageView *imageViewOfBackground = [[UIImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    imageViewOfBackground.image = [UIImage imageNamed:@"profile_homepage_default_bg"];
    imageViewOfBackground.userInteractionEnabled = YES;
    [self.view addSubview:imageViewOfBackground];
    //歌名
    UILabel *labelOfSingName = [[UILabel alloc] initWithFrame:CGRectMake(207 - 100, 30, 200, 60)];
    labelOfSingName.textAlignment = 1;
    labelOfSingName.textColor = [UIColor whiteColor];
    labelOfSingName.text = @"天空之城";
    [imageViewOfBackground addSubview:labelOfSingName];
    //歌名
    UILabel *labelOfSonger = [[UILabel alloc] initWithFrame:CGRectMake(207 - 100, 50, 200, 60)];
    labelOfSonger.textAlignment = 1;
    labelOfSonger.textColor = [UIColor whiteColor];
    labelOfSonger.text = @"李志";
    [imageViewOfBackground addSubview:labelOfSonger];
    // 音质选择
    UIButton *buttonOfQuality = [[UIButton alloc] initWithFrame:CGRectMake(207 - 150, 80, 100, 60)];
    [buttonOfQuality setImage:[UIImage imageNamed:@"player_btn_bz_sel_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfQuality];
    
    UIButton *buttonOfMV = [[UIButton alloc] initWithFrame:CGRectMake(207 - 50, 80, 100, 60)];
    [buttonOfMV setImage:[UIImage imageNamed:@"player_btn_mv_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfMV];
    
    UIButton *buttonOfDts = [[UIButton alloc] initWithFrame:CGRectMake(207  + 50, 80, 100, 60)];
    [buttonOfDts setImage:[UIImage imageNamed:@"player_btn_dts_on"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfDts];
    //中间的圆图片
    UIImageView *imageViewOfRoundImageView= [[UIImageView alloc] initWithFrame:CGRectMake(207 - 150, 140, 300, 300)];
    imageViewOfRoundImageView.image = [UIImage imageNamed:@"xinsrc_52204071211139532608694"];
    imageViewOfRoundImageView.layer.cornerRadius = 150;
    imageViewOfRoundImageView.clipsToBounds = YES;
    [imageViewOfBackground addSubview:imageViewOfRoundImageView];
    // pag
    UIPageControl *page = [[UIPageControl alloc] initWithFrame:CGRectMake(207 - 150, 450, 300, 60)];
    page.numberOfPages = 3;
    [imageViewOfBackground addSubview:page];
    // 进度条
    UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(207 - 190, 500, 380, 40)];
//    slider.value = 1;
    [imageViewOfBackground addSubview:slider];
    // 上一首键
    UIButton *buttonOfsuperior = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfsuperior.frame = CGRectMake(207 - 120, 550, 60, 60);
    [buttonOfsuperior setImage:[UIImage imageNamed:@"player_btn_pre_highlight"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfsuperior];
    // 播放键
    UIButton *buttonOfPlay = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfPlay.frame = CGRectMake(207 - 50, 525, 100, 100);
    [buttonOfPlay setImage:[UIImage imageNamed:@"player_btn_play_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfPlay];
    // 下一首键
    UIButton *buttonOfNext = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfNext.frame = CGRectMake(207 + 70, 550, 60, 60);
    [buttonOfNext setImage:[UIImage imageNamed:@"player_btn_next_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfNext];
    
    UIButton *buttonOfHeart = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfHeart.frame = CGRectMake(207 - 180, 650, 60, 60);
    [buttonOfHeart setImage:[UIImage imageNamed:@"concise_icon_favorite_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfHeart];
    
    UIButton *buttonOfCirculation = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfCirculation.frame = CGRectMake(207 - 100, 650, 60, 60);
    [buttonOfCirculation setImage:[UIImage imageNamed:@"11D9EDF62271752FDBD5ECE614374E04"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfCirculation];
    
    UIButton *buttonOfDownload = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfDownload.frame = CGRectMake(207 - 30, 650, 60, 60);
    [buttonOfDownload setImage:[UIImage imageNamed:@"concise_icon_download_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfDownload];
    
    UIButton *buttonOfShare = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfShare.frame = CGRectMake(207 + 50, 650, 60, 60);
    [buttonOfShare setImage:[UIImage imageNamed:@"share_34.67680608365px_1154789_easyicon.net"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfShare];
    
    UIButton *buttonOfMenu = [UIButton buttonWithType:UIButtonTypeSystem];
    buttonOfMenu.frame = CGRectMake(207 + 120, 650, 60, 60);
    [buttonOfMenu setImage:[UIImage imageNamed:@"miniplayer_btn_playlist_normal"] forState:UIControlStateNormal];
    [imageViewOfBackground addSubview:buttonOfMenu];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
